class CreateSideffects < ActiveRecord::Migration
  def self.up
    create_table(:sideffects, :options=>"ENGINE=MyISAM") do |t|
      t.string :name
      t.timestamps
    end
    
    sql =<<-SQL
      insert into sideffects(id, name) select id, sideffect from askapatient.sideffects
    SQL
    execute(sql)

    end

  def self.down
    drop_table :sideffects
  end
end
